import instance from "@/utils/request";

export const all_list_job = () => {
    let url = "system/job/jobs"
    return instance.get(url) 
}

export const add_one_job = (data) => {
    let url = '/system/job/jobs'
    return instance.post(url,{...data})
}

export const put_one_job = (id,data) => {
    let url = '/system/job/job/'+id
    return instance.put(url,{...data})
}
export const delete_job = (ids) => {
    let url = '/system/job/job'
    return instance.delete(url,{data:ids})
}